// 该程序用于计算收入税
#include <iostream>
using namespace std;
int main()
{
    int net_income;
    double tax_bill;
    double five_percent_tax, ten_percent_tax;
    net_income = 25100.00;
    if (net_income <= 15000)
    {
        tax_bill = 0;
    }
    else if ((net_income > 15000) && (net_income <= 25000))
    {
        tax_bill = 0.05 * (net_income - 15000);
    }
    else
    {
        five_percent_tax = 0.05 * 10000;
        ten_percent_tax = 0.10 * (net_income - 25000);
        tax_bill = five_percent_tax + ten_percent_tax;
    }
    cout.setf(ios::fixed);
    cout.setf(ios::showpoint);
    cout.precision(2);
    cout << "tax_bill = " << tax_bill << endl;
    return 0;
}